{extend name="default/shops/base" /}
{block name="title"}投诉详细 - 卖家中心{__block__}{/block}
{block name="css"}
{/block}
{block name="content"}
  <div class="wst-shop-head"><span>投诉详细</span></div>

  <div class='wst-shop-content'>
    <table border='0' class='wst-complain-detail'>
           <tr>
              <td colspan='2' class='head'>投诉信息</td>
           </tr>
           <tr>
              <th width='80'>订单号：</th>
              <td>{$data['orderNo']}</td>
           </tr>
           <tr>
              <th>投诉类型：</th>
              <td>
              {if condition="$data['complainType'] eq 1"}
                                          承诺的没有做到
              {elseif condition="$data['complainType'] eq 2"/}
                                          未按约定时间发货
              {elseif condition="$data['complainType'] eq 3"/}
                                          未按成交价格进行交易
              {elseif condition="$data['complainType'] eq 4"/}
                                          恶意骚扰                           
              {/if}
              </td>
           </tr>
           <tr>
              <th>投诉内容：</th>
              <td>{$data['complainContent']}</td>
           </tr>
           <tr>
              <th valign='top'>附件：</th>

              <td id="photos-complain">
               {volist name="$data['complainAnnex']" id="annex"}
                <a href="javascript:void(0)">
                <img  layer-src="__ROOT__/{$annex}" width="100" height="100" src="__ROOT__/{:str_replace('.','_thumb.',$annex)}" />
                </a>
               {/volist}
              </td>

           </tr>
           <tr>
              <th>投诉时间：</th>
              <td>{$data['complainTime']}</td>
           </tr>
        </table>


        {if condition="$data['needRespond'] eq 1 AND $data['respondContent'] neq ''"}
        <table border='0' class='wst-complain-detail'>
           <tr>
              <td colspan='2' class='head'>应诉信息</td>
           </tr>
           <tr>
              <th width='80'>应诉内容：</th>
              <td>{$data['respondContent']}</td>
           </tr>
           <tr>
              <th valign='top'>附件：</th>
              <td>
               <div id="respondAnnex">
                 {volist name="$data['respondAnnex']" id="annex2"}
                  <a href="javascript:void(0)"><img class='lazyImg' src="__ROOT__/{:str_replace('.','_thumb.',$annex2)}" layer-src="__ROOT__/{$annex2}" height="100" width="100"/></a>
                 {/volist}
                </div>
              </td>
           </tr>
           <tr>
              <th>应诉时间：</th>
              <td>{$data['respondTime']}</td>
           </tr>
        </table>
        {/if}
        <table border='0' class='wst-complain-detail' style='margin-top:15px;'>
           <tr>
              <td colspan='2' class='head'>仲裁结果</td>
           </tr>
           <tr>
              <th width='80'>仲裁结果：</th>
              <td>
              {if condition="$data['complainStatus'] eq 0"}
                                          等待处理
              {elseif condition="$data['complainStatus'] eq 1"/}
                                          等待应诉人回应
              {elseif condition="$data['complainStatus'] eq 2 OR $data['complainStatus'] eq 3"/}
                                          等待仲裁
              {elseif condition="$data['complainStatus'] eq 4"/}
                                          已仲裁                        
              {/if}
              </td>
           </tr>
           {if condition="$data['complainStatus'] eq 4"}
           <tr>
              <th valign='top'>仲裁结果：</th>
              <td>
               {$data['finalResult']}
              </td>
           </tr>
           {/if}
           {if condition="$data['complainStatus'] eq 4"}
           <tr>
              <th>仲裁时间：</th>
              <td>{$data['finalResultTime']}&nbsp;</td>
           </tr>
           {/if}
           <tr>
              <td colspan='2' style='text-align:center;'><button onclick="javascript:history.go(-1)" class="wst-shop-but s-btn">返回</button></td>
           </tr>
        </table>
  </div>
{/block}
{block name="js"}
<script type='text/javascript' src='__STYLE__/shops/orders/orders.js?v={$v}'></script>
<script>
$(function(){
  // 调用图像层
  layer.photos({
    photos: '#photos-complain'
  });
  layer.photos({
    photos: '#respondAnnex'
  });
})
</script>
{/block}
